package businesslogic.promotionbl;

import vo.AccountDiscountPromotionVO;
import vo.AccountGiftPromotionVO;
import vo.CustomerDiscountPromotionVO;
import vo.CustomerGiftPromotionVO;
import vo.GoodsDiscountPromotionVO;
import businesslogicservice.promotionblservice.PromotionBLService;

public class PromotionBLDriver {

	public void drive(PromotionBLService promotionBLService)
	{
		boolean result=true;
		result=promotionBLService.addAccountDiscount(new AccountDiscountPromotionVO());
		if(result) System.out.println("Add successfully");
		result=promotionBLService.addAccountGift(new AccountGiftPromotionVO());
		if(result) System.out.println("Add successfully");
		result=promotionBLService.addCustomerDiscount(new CustomerDiscountPromotionVO());
		if(result) System.out.println("Add successfully");
		result=promotionBLService.addCustomerGift(new CustomerGiftPromotionVO());
		if(result) System.out.println("Add  successfully");
		result=promotionBLService.addGoodsDiscount(new GoodsDiscountPromotionVO());
		if(result) System.out.println("Add  successfully");
		
		
	}
	
}